package tds.model26;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Finacial
 * @Description 财务部
 * @author tds
 * @Date 2020/2/7 21:45
 * @version 1.0.0
 */
public class Finacial implements Department {

    private Mediator mediator;

    private String name;

    public Finacial(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
        mediator.register(name, this);
    }

    @Override
    public void selfAction() {
        System.out.println("财务部正在清理财务！");
    }

    @Override
    public void outAction() {
        System.out.println("财务部正在拨钱中。。。");
    }
}
